import 'package:safetymonitor/generated/json/base/json_convert_content.dart';
import 'package:safetymonitor/app/data/entities/home/execute_entity.dart';
import 'package:safetymonitor/app/data/common/choice_bean.dart';

import 'package:safetymonitor/generated/json/base/json_convert_content.dart';


ExecuteTicketReceiptListOperatorLists $ExecuteTicketReceiptListOperatorListsFromJson(Map<String, dynamic> json) {
  final ExecuteTicketReceiptListOperatorLists executeTicketReceiptListOperatorLists = ExecuteTicketReceiptListOperatorLists();
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    executeTicketReceiptListOperatorLists.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    executeTicketReceiptListOperatorLists.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    executeTicketReceiptListOperatorLists.createDate = createDate;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    executeTicketReceiptListOperatorLists.id = id;
  }
  final String? operatorCertificateId = jsonConvert.convert<String>(json['operatorCertificateId']);
  if (operatorCertificateId != null) {
    executeTicketReceiptListOperatorLists.operatorCertificateId = operatorCertificateId;
  }
  final int? operatorType = jsonConvert.convert<int>(json['operatorType']);
  if (operatorType != null) {
    executeTicketReceiptListOperatorLists.operatorType = operatorType;
  }
  final String? operatorUserId = jsonConvert.convert<String>(json['operatorUserId']);
  if (operatorUserId != null) {
    executeTicketReceiptListOperatorLists.operatorUserId = operatorUserId;
  }
  final String? operatorUserName = jsonConvert.convert<String>(json['operatorUserName']);
  if (operatorUserName != null) {
    executeTicketReceiptListOperatorLists.operatorUserName = operatorUserName;
  }
  final String? operatorUserSign = jsonConvert.convert<String>(json['operatorUserSign']);
  if (operatorUserSign != null) {
    executeTicketReceiptListOperatorLists.operatorUserSign = operatorUserSign;
  }
  final String? ticketPlanId = jsonConvert.convert<String>(json['ticketPlanId']);
  if (ticketPlanId != null) {
    executeTicketReceiptListOperatorLists.ticketPlanId = ticketPlanId;
  }
  final String? ticketReceiptId = jsonConvert.convert<String>(json['ticketReceiptId']);
  if (ticketReceiptId != null) {
    executeTicketReceiptListOperatorLists.ticketReceiptId = ticketReceiptId;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    executeTicketReceiptListOperatorLists.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    executeTicketReceiptListOperatorLists.updateDate = updateDate;
  }
  final String? operatorName = jsonConvert.convert<String>(json['operatorName']);
  if (operatorName != null) {
    executeTicketReceiptListOperatorLists.operatorName = operatorName;
  }
  final String? phone = jsonConvert.convert<String>(json['phone']);
  if (phone != null) {
    executeTicketReceiptListOperatorLists.phone = phone;
  }
  final int? number = jsonConvert.convert<int>(json['number']);
  if (number != null) {
    executeTicketReceiptListOperatorLists.number = number;
  }
  final bool? isChecked = jsonConvert.convert<bool>(json['isChecked']);
  if (isChecked != null) {
    executeTicketReceiptListOperatorLists.isChecked = isChecked;
  }
  return executeTicketReceiptListOperatorLists;
}

Map<String, dynamic> $ExecuteTicketReceiptListOperatorListsToJson(ExecuteTicketReceiptListOperatorLists entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['id'] = entity.id;
  data['operatorCertificateId'] = entity.operatorCertificateId;
  data['operatorType'] = entity.operatorType;
  data['operatorUserId'] = entity.operatorUserId;
  data['operatorUserName'] = entity.operatorUserName;
  data['operatorUserSign'] = entity.operatorUserSign;
  data['ticketPlanId'] = entity.ticketPlanId;
  data['ticketReceiptId'] = entity.ticketReceiptId;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  data['operatorName'] = entity.operatorName;
  data['phone'] = entity.phone;
  data['number'] = entity.number;
  data['isChecked'] = entity.isChecked;
  return data;
}

extension ExecuteTicketReceiptListOperatorListsExtension on ExecuteTicketReceiptListOperatorLists {
  ExecuteTicketReceiptListOperatorLists copyWith({
    String? companyCode,
    String? createBy,
    String? createDate,
    String? id,
    String? operatorCertificateId,
    int? operatorType,
    String? operatorUserId,
    String? operatorUserName,
    String? operatorUserSign,
    String? ticketPlanId,
    String? ticketReceiptId,
    String? updateBy,
    String? updateDate,
    String? operatorName,
    String? phone,
    int? number,
    bool? isChecked,
  }) {
    return ExecuteTicketReceiptListOperatorLists()
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..id = id ?? this.id
      ..operatorCertificateId = operatorCertificateId ?? this.operatorCertificateId
      ..operatorType = operatorType ?? this.operatorType
      ..operatorUserId = operatorUserId ?? this.operatorUserId
      ..operatorUserName = operatorUserName ?? this.operatorUserName
      ..operatorUserSign = operatorUserSign ?? this.operatorUserSign
      ..ticketPlanId = ticketPlanId ?? this.ticketPlanId
      ..ticketReceiptId = ticketReceiptId ?? this.ticketReceiptId
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate
      ..operatorName = operatorName ?? this.operatorName
      ..phone = phone ?? this.phone
      ..number = number ?? this.number
      ..isChecked = isChecked ?? this.isChecked;
  }
}